pull: don't use static deltas if archive repo
authorJonathan Lebon <jlebon@redhat.com>
Thu, 2 Mar 2017 17:11:17 +0000 (12:11 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 2 Mar 2017 20:35:24 +0000 (20:35 +0000)
commit199646ccfa59f919d92af956195e3997d370d236
tree5d60a3ddaca5131f634d112ddf6a6a9cc4609995
parent64422a7d0beb5243d051320cc94c14324b845049
pull: don't use static deltas if archive repo

In https://github.com/ostreedev/ostree/pull/408, we disabled the use of
static deltas when mirroring. Later,
https://github.com/ostreedev/ostree/pull/506 loosened this up again so
that we could use static deltas when mirroring into bare{-user} repos.

However, the issue which originally spurrred #408 is even more generic
than that: we want to avoid static deltas for any archive repo, not just
when doing a mirror pull. This patch tightens this up, and also
relocates the decision code to make it easier to read.

Closes: #715
Approved by: cgwalters
src/libostree/ostree-repo-pull.c
tests/pull-test.sh
tests/test-delta.sh